package com.elong.android.specialhouse;

public class AppConstants {
    public final static String PACKAGE_NAME = "com.elong.android.youfang";
    public static final String PARENT_FILE_PATH = "/Android/data/" + PACKAGE_NAME ;
    /**
     * https异常日志发送开关(默认关闭)
     */
    public static boolean isSendHttpsExceptionOpen = false;
    /**
     * http request 监控开关(默认打开)
     */
    public static boolean isMonitor = false;
    /**
     * 支付产品
     * 支付channel_type
     */
    final public static int PAYMENT_CHANNEL_TYPE = 9124;
    /**
     * 新接口api对称加密key
     */
    final public static String NEW_API_SECRET_KEY = "9KtTn1iqEazAI9rM";

    /**
     * tabhome的选项卡索引
     */
    public static final String KEY_HOME_TAB_INDEX = "tabIndex";
    public static final int TAB_INDEX_HOUSE_MANAGER = 1;
    public static final int TAB_INDEX_TENANT_ORDER = 2;
    /**
     * 身份审核状态
     */
    public static final String AUTH_NOTPASS_CODE = "N";
    public static final String AUTH_PASS_CODE = "Y";
    public static final String AUTH_CHECK_CODE = "A";
    public static final String AUTH_NOSUBMIT_CODE = "E";
    /**
     * 身份审核状态描述
     */
    public static final String AUTH_NOTPASS_CODE_DESC = "未通过";
    public static final String AUTH_PASS_CODE_DESC = "已通过";
    public static final String AUTH_CHECK_CODE_DESC = "待审核";
    public static final String AUTH_NOSUBMIT_CODE_DESC = "未认证";

//    public static String SERVER_URL = "http://10.35.45.84/";

    public static String SERVER_URL = "http://mobile-api2011.elong.com/";
    public static String SERVER_URL_HOUSE = "house/";
    //支付测试地址
    public static final String SERVER_URL_TEST = "http://192.168.9.28/";

    //灰度环境
    public static final String SERVER_URL_GATED = "http://10.35.45.84/";
    //线上环境
    public static final String SERVER_URL_ONINE = "http://mobile-api2011.elong.com/";
    //测试环境
    public static final String SERVER_URL_MAPI_TEST = "http://192.168.15.27:8346/";
    public static final String SERVER_URL_UPLOAD_PIC = "http://house-mapi.elong.com/";
    public static final int DEFAULT_CLIENTTYPE = 3;
    /**
     * 数据统计ch字段值(入口标识)
     */
    public static final String COUNTLY_ROOT_TEXT = "youfangHomePage";
    /**
     * 数据统计收集工具key
     */
    public static final String COUNTLY_KEY = "ff74b2cfc2b92cb06d8db5d48b095e0610bbd51c";
    /**
     * 听云key
     */
    public static final String TINGYUN_KEY = "7bb3844f696e431f850540b8e8ee9e28";
    /**
     * 虚拟位置开关,true为虚拟定位，false为真实定位
     */
    public static boolean isVirtualLocation = false;

    public static final String OUTER_ORIGIN = "android";

    /**
     * 用户访问token
     */
    public static final String ACCESSTOKEN = "AccessToken";
    /**
     * 用户id
     */
    public static final String USER_ID = "Uid";
    public static final String U_ID = "Uid";
    /**
     * 房东的Uid
     */
    public static final String LANDLORD_ID = "landlordId";
    public static final String LANDLORD_NAME = "landlordName";
    /**
     * 证件类型审核状态
     */
    public static final String USER_IDENTITYPASS = "IdentityPass";
    /**
     * 证件类型审核状态描述
     */
    public static final String USER_IDENTITYPASSDECRIPTION = "IdentityPassDecription";
    /**
     * 未通过理由
     */
    public static final String USER_FAILED_REASON = "Message";



    /**
     *
     */
    public static final String ORDER_ID = "orderId";
    /**
     *
     */
    public static final String GORDER_ID = "gorderId";
    public static final String ORDER_REQ_PARAMS = "orderReqParams";

    public static final String HOUSE_ID = "houseId";
    public static final String HOUSE_STATUS = "houseStatus";
    public static final String APARTMENT_ID="ApartmentId";
    /**
     * 移动设备App成单，客户端类型（Android，IOS等）
     */
    public static final String AppClientType = "Android";
    /**
     * 密码的最小长度
     */
    public static final int MIN_PASSWORD_LENGHT = 6;

    /**
     * 密码的最大长度
     */
    public static final int MAX_PASSWORD_LENGHT = 15;
    /**
     * 姓名的最大长度
     */
    public static final int MAX_NICKNAME_LENGHT = 10;
    /**
     * 入住人姓名的最大长度
     */
    public static final int MAX_CHECKINPERSON_NAME_LENGHT = 20;
    /**
     * 姓名的最大长度
     */
    public static final int MIN_NAME_LENGHT = 1;

    /**
     * 读秒计时器总秒数
     */
    public static final long MILLIS_IN_FUTURE = 60000;

    /**
     * 读秒计时器减少幅度
     */
    public static final long COUNT_DOWN_INTERVAL = 1000;

    /**
     * 动态密码登录读秒计时剩余时间记录，取值范围1~60s，0表示无剩余
     */
    public static long TIMES_REMAIN = 0;

    /**
     * 动态密码登录验证码有效期10分钟
     */
    public static long TIMES_VERIFY_CODE_VALID_RANGE = 10 * 60 * 1000;

    /**
     * AppConstants.CITYTYPE_APARTMENT:表示国内城市
     */
    public final static int CITYTYPE_APARTMENT = 0;

    /**
     * 从相册选择照片时一次最多能选择的张数的key
     */
    public final static String ACTIVITY_KEY_MAX_PHOTO_COUNT = "maxPhotoCount";

    /**
     * 选中的照片的key
     */
    public final static String ACTIVITY_KEY_SELECTED_PHOTOS = "selectedPhotos";
    /**
     * 选择照片时是否需要剪裁的标志key
     */
    public final static String ACTIVITY_KEY_IS_NEED_CUT = "isNeedCut";

    public final static String ACTIVITY_KEY_FROM_WHERE = "fromWhere";
    public final static String ACTIVITY_KEY_HOUSE_IMAGES = "HouseImages";
    public final static String ACTIVITY_KEY_BOOK_REQUEST_PARAM = "BookRequestParam";
    public final static String ACTIVITY_KEY_HOUSE_ID = "houseId";
    public final static String ACTIVITY_KEY_HOUSE_BAIDU_LATITUDE = "BaiduLatitude";
    public final static String ACTIVITY_KEY_HOUSE_BAIDU_LONGITUDE = "BaiduLongitude";
    public final static String ACTIVITY_KEY_HOUSE_ADDRESS = "Address";
    public final static String ACTIVITY_KEY_FRIEND_ID = "friendId";
    public final static String ACTIVITY_KEY_FRIEND_NAME = "friendName";
    /**
     * 修改房源信息的key
     * 0：正常发布流程
     * 1：未发布的房源的修改，调用publishHouseDetail接口
     * 2：已发布的房源的修改，调用updateHouse接口
     */
    public final static String MODIFY_HOUSE_INFO_KEY = "modifyHouseInfoKey";
    public final static int MODIFY_HOUSE_INFO_TYPE_DETAIL = 0;
    public final static int MODIFY_HOUSE_INFO_TYPE_UPDATE = 1;

    public final static String MODIFY_HOUSE_WHAT = "modifyHouseWhat";
    public final static int MODIFY_HOUSE_TITLE = 1;
    public final static int MODIFY_HOUSE_DESC = 2;

    public final static String MODIFY_HOUSE_IMAGE = "modifyHouseImage";
    /**
     * 修改房源位置信息
     */
    public final static String MODIFY_HOUSE_POSITION = "modifyHousePosition";
    /**
     * 修改房源位置房型和床位信息
     */
    public final static String MODIFY_HOUSE_HOUSE_TYPE_AND_BED = "modifyHouseTypeAndBed";
    /**
     * 修改房源公共设施信息
     */
    public final static String MODIFY_HOUSE_COMMUNAL_FACILITIES = "modifyHouseCommunalFacilities";
    /**
     * 修改房源室内设施信息
     */
    public final static String MODIFY_HOUSE_ROOM_FACILITIES = "modifyHouseRoomFacilities";
    /**
     * 修改房源特殊设施信息
     */
    public final static String MODIFY_HOUSE_SPECIAL_FACILITIES = "modifyHouseCommunalSpecialFacilities";
    /**
     * 修改房源价格信息
     */
    public final static String MODIFY_HOUSE_SETTING_PRICE = "modifyHouseSettingPrice";

    /**
     * 是否有修改
     */
    public final static String HAS_MODIFICATION = "hasModification";
    /**
     * 传值给preview页的key
     */
    public final static String BUNDLE_KEY_PREVIEW = "bundleKeyPreview";
    /**
     * 默认一次能选择的照片的最大张数
     */
    public final static int DEFAULT_MAX_PHOTO_COUNT = 1;

    /**
     * 证件类型 身份证
     */
    public final static int DOCUMENT_TYPE_ID_CARD = 1;

    /**
     * 保存发布房源位置信息的key
     */
    public final static String PUBLISH_HOUSE_LOCATION = "publish_house_location";
    public final static String HOUSE_LOCATION_CITY = "house_location_city";
    public final static String HOUSE_LOCATION_CITY_ID = "house_location_city_id";
    public final static String HOUSE_LOCATION_AREA = "house_location_area";
    public final static String HOUSE_LOCATION_DISTRICT = "house_location_district_name";
    public final static String HOUSE_LOCATION_DISTRICT_ID = "house_location_district_id";
    public final static String HOUSE_LOCATION_BUSINESS_ID = "house_location_business_id";
    public final static String HOUSE_LOCATION_ADDRESS_STREET = "house_location_address_street";
    public final static String HOUSE_LOCATION_ADDRESS_DOORNUM = "house_location_address_doornum";
    public final static String KEY_CITY_NAME = "keyCityName";
    public final static String KEY_CITY_ID = "keyCityId";
    public final static String HOUSE_LOCATION_SPLIT = "#";
    /**
     * 每页显示评论的最大数量
     */
    public final static int COMMENTS_PAGESIZE = 15;

    /**
     * ListView默认每页加载条数
     */
    public final static int DEFAULT_PAGE_SIZE = 15;

    /**
     * 打开选择日期界面时是否显示价格
     */
    public final static String ACTIVITY_KEY_IS_SHOW_PRICE = "isShowPrice";

    /**
     * activity跳转源的key
     */
    public final static String BUNDLE_KEY_COME_FROM = "comeFrom";

    /**
     * 空间类型，0-整套
     */
    public static final byte SPACE_TYPE_WHOLE_HOUSE = 0;
    /**
     * 空间类型，1-单间
     */
    public static final byte SPACE_TYPE_ONE_ROOM = 1;
    /**
     * 空间类型，2-床位
     */
    public static final byte SPACE_TYPE_BED_ONLY = 2;


    public final static String PHONE_NUMBER = "4006661166";

    public final static String BUNDLEKEY_KEYWORDOBJECT = "keyword_object";
    public final static String BUNDLEKEY_CITYNAME = "cityName";
    public final static String BUNDLEKEY_CITYID = "cityId";
    public final static String PUBLISH_HOUSE_AREA_NAME = "areaName";
    public final static String BUNDLEKEY_INDEX = "index";
    public final static String BUNDLEKEY_TITLE = "title";

    /**
     * 日历页面日期格子背景色
     */
    public static final int COLOR_WHITE = 0xffffffff;
    public static final int COLOR_ORANGE = 0xfff2901c;
    public static final int COLOR_BLACK = 0xff333333;
    public static final int COLOR_GREEN = 0xff4ca06f;
    public static final int COLOR_TODAY =  0xffFF6600;
    public static final int COLOR_DISABLE_NORMAL = 0xffB3B3B3;
    public static final int COLOR_DISABLE_PRESSED = 0xff999999;
    public static final int COLOR_DISABLE_TEXT = 0xffBCBCBC;


    public final static String HOUSE_IAMGE_URL = "houseCoverUrl";
    public static final String APARTMENT_NAME = "apartmentName";
    /**
     * 入住时间
     */
    public static final String CHECKIN_DATE_TIME = "checkinDateTime";
    /**
     * 离店时间
     */
    public static final String CHECKOUT_DATE_TIME = "checkoutDateTime";

    /**
     * IM广播Receiver的优先级
     */
    public static final int RECEIVER_PRIORITY_HOME = 100 ;
    public static final int RECEIVER_PRIORITY_MESSAGE_LIST = 200 ;
    public static final int RECEIVER_PRIORITY_CHAT =  300;

    public static final String BANK_NAME = "BankName";
    public static final String KEY_CITY = "city";
    public static final String KEY_PROVINCE = "procince";
    public static final String BANK_CARD_INFO = "bankCardInfo";
    public static final byte PUSH_OFF = 0 ;
    public static final byte PUSH_ON = 1 ;
    public static final String KEY_PAYLOAD = "payload";
    public static final String KEY_SAVE_AUTH_STATUS = "saveAuthStatus";

    public static final String KEY_CAN_BE_EXTRACTED = "keyCanBeExtracted";

    public static final String KEY_IS_CONTINUE_PAY = "isContinuePay";
    public static final String KEY_IS_FROM_ORDER_LIST_PAGE = "isFromOrderListPage";
    /**
     默认的入离店时间 t,t+2
     */
    public static int DEFAULT_CHECKIN_CHECKOUT_DAYS = 2;
}